package java基础;

import java.util.HashSet;

public class HashCode {
    @Override
    public int hashCode() {
        return super.hashCode();
    }

    public static void main(String[] args) {
        HashSet<Integer> hashSet=new HashSet<>();
        for (int i = 0; i <10000*1000 ; i++) {
            HashCode hashCode=new HashCode();
            int i1 = hashCode.hashCode();
            if (hashSet.contains(i1)){
                System.out.println(i1);
            }else {
                hashSet.add(i1);
            }
        }
    }
}
